﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace QualitySupervision.Migrations
{
    public partial class _8 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<float>(
                name: "Tax",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "NotMonthAllocationIncome",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "MonthIncomeAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "MonthArrears",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "MonthAllocationIncome",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "MonthActualIncomeAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "LossAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "IncomeAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "CumulativeIncomeAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "CumulativeAllocationIncome",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "CumulativeActualIncomeAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "ContractTotal",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<float>(
                name: "CollectAmount",
                table: "MobileAccruals",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Tax",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "NotMonthAllocationIncome",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MonthIncomeAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MonthArrears",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MonthAllocationIncome",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MonthActualIncomeAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "LossAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "IncomeAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "CumulativeIncomeAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "CumulativeAllocationIncome",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "CumulativeActualIncomeAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "ContractTotal",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "CollectAmount",
                table: "MobileAccruals",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(float),
                oldNullable: true);
        }
    }
}
